package com.jishuo.nontax.bfc.dao;

import com.jishuo.nontax.bean.vo.WaitaffirmPayInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hlp
 * @date 2023/2/2 09:34
 * @Description:
 */
@Mapper
public interface WaitaffirmPayInfoMapper {

    /** 根据交易流水号、银行账户、付款日期 查询当日是否有支出记录 */
    WaitaffirmPayInfoVO selecWaitaffirmpayinfo(@Param("bankaffirm") String bankaffirm, @Param("bankid") Long bankid, @Param("paybankdt") String paybankdt);

    //根据交易流水号、银行账户、付款日期 修改支出记录
    int updateWaitaffirmpayinfo(WaitaffirmPayInfoVO waitaffirmPayInfo);

    /** 添加支付记录(页面共用) */
    int insertWaitaffirmpayinfo(WaitaffirmPayInfoVO waitaffirmPayInfo);

    /** 根据账号id、日期查询 */
    List<WaitaffirmPayInfoVO> selectWaitaffirPayInfo(@Param("bankid") Long bankid, @Param("paybankdt") String paybankdt);


    //页面
    List<WaitaffirmPayInfoVO> findWaitaffirmPayInfoPage(WaitaffirmPayInfoVO waitaffirmPayInfoVO);

    /** 修改 */
    int  saveWaitaffirmPayInfo(WaitaffirmPayInfoVO waitaffirmPayInfoVO);
    /** 删除 */
    int deleteWaitaffirmPayInfo(String[] waitaffirmpayids);

    WaitaffirmPayInfoVO getWaitaffirmPayInfo(Long waitaffirmpayid);

        List<WaitaffirmPayInfoVO> findColum();

    /**
     * 根据id集合查询99支出票据信息
     * @param billids
     * @return
     */
    List<WaitaffirmPayInfoVO> findWaitaffirmPayInfo(String[] billids);
}
